package com.jade.zsy.base.entity;

import com.jade.bss.db.IdEntity;
import com.jade.zsy.base.common.StatusConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 组织机构
 * User: jinya
 * Date: 2017/5/31
 * Time: 11:08
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "SCF_BASE_ORG")
public class Org  extends IdEntity {
    @Column(name = "parentId", updatable = true, nullable = true, length = 100)
    private long parentId=0; /** 上级编号 **/
    @Column(name = "code", updatable = true, nullable = false, length = 25)
    private String code; /** 编号 **/
    @Column(name = "name", updatable = true, nullable = false, length = 50)
    private String name; /** 名称 **/
    @Column(name = "principalName", updatable = true, nullable = true, length = 25)
    private String principalName; /** 部门负责人 **/
    @Column(name = "principalTel", updatable = true, nullable = true, length = 25)
    private String principalTel; /** 负责人电话 **/
    @Column(name = "principalEmail", updatable = true, nullable = true, length = 100)
    private String principalEmail; /** 负责人邮箱 **/
    @Column(name = "principalPhone", updatable = true, nullable = true, length = 25)
    private String principalPhone; /** 负责人手机 **/
    @Column(name = "principalFax", updatable = true, nullable = true, length = 25)
    private String principalFax; /** 负责人传真 **/
    @Column(name = "status", updatable = true, nullable = false, length = 25)
    private int status= StatusConstant.RECORD_INIT; /** 状态 **/

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public String getPrincipalTel() {
        return principalTel;
    }

    public void setPrincipalTel(String principalTel) {
        this.principalTel = principalTel;
    }

    public String getPrincipalEmail() {
        return principalEmail;
    }

    public void setPrincipalEmail(String principalEmail) {
        this.principalEmail = principalEmail;
    }

    public String getPrincipalPhone() {
        return principalPhone;
    }

    public void setPrincipalPhone(String principalPhone) {
        this.principalPhone = principalPhone;
    }

    public String getPrincipalFax() {
        return principalFax;
    }

    public void setPrincipalFax(String principalFax) {
        this.principalFax = principalFax;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
